Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for private registry in docker-compose.yml #1103

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

warjiang
Copy link
Contributor

@warjiang warjiang commented Mar 7, 2024

close #1102

我已确认该 PR 已自测通过,相关截图如下:
image

@songquanpeng
Copy link
Owner

默认情况还是从官方镜像拉取么?

@warjiang
Copy link
Contributor Author

是的。compose启动的时候会优先从环境变量或者.env文件中取出对应的变量,如果没有会使用冒号后面的值作为默认值
image

具体可以参考这个https://docs.docker.com/compose/environment-variables/env-file/
摘了个截图出来:
image

@songquanpeng songquanpeng merged commit ebfee3b into songquanpeng:main Mar 14, 2024
@songquanpeng
Copy link
Owner

Thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for private registry
2 participants